//
//  UIView+Frame.m
//  01-UIView、UIWindow
//
//  Created by dllo on 16/7/14.
//  Copyright © 2016年 QC.L. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)
- (void)setT_x:(CGFloat)t_x {
    CGRect rect = self.frame;
    rect.origin.x = t_x;
    self.frame = rect;

}


- (CGFloat)t_x {

    return self.frame.origin.x;

}

- (void)setT_y:(CGFloat)t_y {
    CGRect rect = self.frame;
    rect.origin.y = t_y;
    self.frame = rect;
    
}


- (CGFloat)t_y {
    return self.frame.origin.y;
}

- (void)setT_width:(CGFloat)t_width{
    CGRect rect = self.frame;
    rect.size.width = t_width;
    self.frame = rect;
    
}


- (CGFloat)t_width {
    return self.frame.size.width;
}

- (void)setT_height:(CGFloat)t_height {
    CGRect rect = self.frame;
    rect.size.height = t_height;
    self.frame = rect;
    
}


- (CGFloat)t_height {
    return self.frame.size.height;
}


@end
